import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/member/czCate/getList",
    method: "get",
    params,
  });
}
export function getAllList(params) {
  return request({
    url: "/member/czCate/getAllList",
    method: "get",
    params,
  });
}
export function getMyCateList(params) {
  return request({
    url: "/member/czCate/getMyCateList",
    method: "get",
    params,
  });
}
export function getSysCateList(params) {
  return request({
    url: "/member/czCate/getSysCateList",
    method: "get",
    params,
  });
}

export function getAllCateListForMyList(params) {
  return request({
    url: "/member/czCate/getAllCateListForMyList",
    method: "get",
    params,
  });
}

export function change(data) {
  return request({
    url: "/member/czCate/change",
    method: "post",
    data,
  });
}
export function add(data) {
  return request({
    url: "/member/czCate/add",
    method: "post",
    data,
  });
}
export function del(id) {
  return request({
    url: "/member/czCate/del",
    method: "post",
    data: { id },
  });
}
